 <!-- 基础库校验通过和裕华区内、非裕华区同一页面 --> 
<template>
  <div>
    <ContainerTitle text="企业基本信息"></ContainerTitle>
    <div class="msgDiv">
      <el-descriptions class="margin-top" :column="2" :size="size" border>
        <el-descriptions-item>
          <template slot="label">企业名称</template>
          {{companyInfo.companyName}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">统一社会信用代码</template>
            {{companyInfo.companyCode}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">法定代表人</template>
          {{companyInfo.companyPerson}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">手机号码</template>
            {{companyInfo.handlerPhone ? companyInfo.handlerPhone : "—"}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">法定代表人证件类型</template>
        {{handlerCertificatesType}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">法定代表人证件号码</template>
            {{companyInfo.handlerCertificatesNumber}}
        </el-descriptions-item>
      </el-descriptions>
    </div>
    <ContainerTitle text="其它信息"></ContainerTitle>
    <div class="msgDiv">
      <el-descriptions class="margin-top" :column="2" :size="size" border>
        <el-descriptions-item>
          <template slot="label" v-if="companyInfo.checkStatus == 1 && companyInfo.clueSource == 1">企业联络人</template>
          <template slot="label" v-else>经办人姓名</template>
          {{companyInfo.companyPerson}}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">手机号码</template>
          {{companyInfo.phone ? companyInfo.phone : "—"}}
        </el-descriptions-item>
      </el-descriptions>
    </div>
  </div>
</template>
<script>
import {mapState} from 'vuex'
export default {
  data() {
    return {
      crumbs: [
        {
          label: '企业空间',
          value: 'company',
        },
        {
          label: '企业基本信息',
          value: 'companyMsg',
          choose: true,
        },
      ],
      size: '',
      handlerCertificatesType:'',
    }
  },
  computed: {
    ...mapState(['companyInfo']),
  },
  methods: {
    async	getFormOptions() {
      // 调用公共方法中的查询字典表
      this.getDictList(this,`sys_user_sex,legal_representative_type`).then(res => {
        this.DocumentType = res.legal_representative_type
        this.sys_user_sex = res.sys_user_sex
        this.DocumentType.forEach(item => {
          if(item.dictValue == this.companyInfo.handlerCertificatesType) {
            this.handlerCertificatesType = item.dictLabel
          }
        })
      })
    }
  },
  created(){
    this.getFormOptions()
  }
}
</script>
<style lang="scss" scoped>
.layout {
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px;
  box-sizing: border-box;
  .enterprise {
    .enterprise_Basic {
      color: #045db9;
      font-size: 20px;
      border: 2px solid #045db9;
    }
  }
  .other_Information {
    .Information {
    }
  }
  .footer {
    position: absolute;
    bottom: 0;
    width: 100%;
  }
  .breadcrumb {
    width: 1000px;
    margin: 20px 0;
  }
  .roomDiv {
    display: flex;
    justify-content: center;
  }

  .roomDiv .leftDiv {
    width: 200px;
    text-align: left;
  }

  .roomDiv .rightDiv {
    width: 800px;
    margin-left: 30px;
  }
  .titleDiv {
    border-bottom: 2px solid #045db9;
    text-align: left;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #045db9;
    margin-bottom: 20px;
  }
  .msgDiv {
    margin: 40px 0;
  }
}

::v-deep th {
  text-align: right !important;
  font-size: 14px !important;
  color: #333333 !important;
  width: 170px !important;
}
::v-deep td {
  width: 248px !important;
}
</style>